package model

type YConfig struct {
	Id         int64  `json:"id"`
	PastureId  int32  `json:"pastureId"`
	ApiUrl     string `json:"apiUrl"`
	FarmNumber string `json:"farmNumber"`
	Secret     string `json:"secret"`
	UserName   string `json:"userName"`
	IsShow     int8   `json:"isShow"`
	CreatedAt  int64  `json:"createdAt"`
	UpdatedAt  int64  `json:"updatedAt"`
}

func (y *YConfig) TableName() string {
	return "y_config"
}

type YConfigAndMqtt struct {
	YMqttList []*YConfig
	MqttList  []*YMqtt
}
